package com.wecan.api.cim;

import com.wecan.base.BO.SystemMessageBO;
import com.wecan.base.PO.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author liuzhihao
 * @Date 2022.03.24
 * @Version ${version}
 * @Description ${description}
 */
@FeignClient(name = "cim", path = "/")
public interface MessageApi {

    @PostMapping(value = "/message/send", consumes = "application/json")
    boolean sendMessage(@RequestBody Message message);

    @PostMapping(value = "/message/system/send", consumes = "application/json")
    boolean sendSystemMessage(@RequestBody SystemMessageBO systemMessageBO);

    @PostMapping(value = "/message/broadcast", consumes = "application/json")
    boolean broadCastMessage(@RequestBody SystemMessageBO systemMessageBO);
}
